package com.java.entity;

import java.io.Serializable;
import java.util.Date;

public class Good implements Serializable {
    private Integer goodId;

    private String goodName;

    private String goodColour;

    private String goodBrand;

    private String goodDesc;

    private Float goodPrice;

    private Date createTime;

    private String goodLike;

    private Integer goodLimitRent;

    private String goodSize;

    private Float goodPriceWeek;

    private Float goodDepositNeed;

    private Boolean goodIfRent;

    private static final long serialVersionUID = 1L;

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName == null ? null : goodName.trim();
    }

    public String getGoodColour() {
        return goodColour;
    }

    public void setGoodColour(String goodColour) {
        this.goodColour = goodColour == null ? null : goodColour.trim();
    }

    public String getGoodBrand() {
        return goodBrand;
    }

    public void setGoodBrand(String goodBrand) {
        this.goodBrand = goodBrand == null ? null : goodBrand.trim();
    }

    public String getGoodDesc() {
        return goodDesc;
    }

    public void setGoodDesc(String goodDesc) {
        this.goodDesc = goodDesc == null ? null : goodDesc.trim();
    }

    public Float getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(Float goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }



    public String getGoodLike() {
		return goodLike;
	}

	public void setGoodLike(String goodLike) {
		this.goodLike = goodLike;
	}

	public Integer getGoodLimitRent() {
        return goodLimitRent;
    }

    public void setGoodLimitRent(Integer goodLimitRent) {
        this.goodLimitRent = goodLimitRent;
    }

    public String getGoodSize() {
        return goodSize;
    }

    public void setGoodSize(String goodSize) {
        this.goodSize = goodSize == null ? null : goodSize.trim();
    }

    public Float getGoodPriceWeek() {
        return goodPriceWeek;
    }

    public void setGoodPriceWeek(Float goodPriceWeek) {
        this.goodPriceWeek = goodPriceWeek;
    }

    public Float getGoodDepositNeed() {
        return goodDepositNeed;
    }

    public void setGoodDepositNeed(Float goodDepositNeed) {
        this.goodDepositNeed = goodDepositNeed;
    }

    public Boolean getGoodIfRent() {
        return goodIfRent;
    }

    public void setGoodIfRent(Boolean goodIfRent) {
        this.goodIfRent = goodIfRent;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Good other = (Good) that;
        return (this.getGoodId() == null ? other.getGoodId() == null : this.getGoodId().equals(other.getGoodId()))
            && (this.getGoodName() == null ? other.getGoodName() == null : this.getGoodName().equals(other.getGoodName()))
            && (this.getGoodColour() == null ? other.getGoodColour() == null : this.getGoodColour().equals(other.getGoodColour()))
            && (this.getGoodBrand() == null ? other.getGoodBrand() == null : this.getGoodBrand().equals(other.getGoodBrand()))
            && (this.getGoodDesc() == null ? other.getGoodDesc() == null : this.getGoodDesc().equals(other.getGoodDesc()))
            && (this.getGoodPrice() == null ? other.getGoodPrice() == null : this.getGoodPrice().equals(other.getGoodPrice()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getGoodLike() == null ? other.getGoodLike() == null : this.getGoodLike().equals(other.getGoodLike()))
            && (this.getGoodLimitRent() == null ? other.getGoodLimitRent() == null : this.getGoodLimitRent().equals(other.getGoodLimitRent()))
            && (this.getGoodSize() == null ? other.getGoodSize() == null : this.getGoodSize().equals(other.getGoodSize()))
            && (this.getGoodPriceWeek() == null ? other.getGoodPriceWeek() == null : this.getGoodPriceWeek().equals(other.getGoodPriceWeek()))
            && (this.getGoodDepositNeed() == null ? other.getGoodDepositNeed() == null : this.getGoodDepositNeed().equals(other.getGoodDepositNeed()))
            && (this.getGoodIfRent() == null ? other.getGoodIfRent() == null : this.getGoodIfRent().equals(other.getGoodIfRent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGoodId() == null) ? 0 : getGoodId().hashCode());
        result = prime * result + ((getGoodName() == null) ? 0 : getGoodName().hashCode());
        result = prime * result + ((getGoodColour() == null) ? 0 : getGoodColour().hashCode());
        result = prime * result + ((getGoodBrand() == null) ? 0 : getGoodBrand().hashCode());
        result = prime * result + ((getGoodDesc() == null) ? 0 : getGoodDesc().hashCode());
        result = prime * result + ((getGoodPrice() == null) ? 0 : getGoodPrice().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getGoodLike() == null) ? 0 : getGoodLike().hashCode());
        result = prime * result + ((getGoodLimitRent() == null) ? 0 : getGoodLimitRent().hashCode());
        result = prime * result + ((getGoodSize() == null) ? 0 : getGoodSize().hashCode());
        result = prime * result + ((getGoodPriceWeek() == null) ? 0 : getGoodPriceWeek().hashCode());
        result = prime * result + ((getGoodDepositNeed() == null) ? 0 : getGoodDepositNeed().hashCode());
        result = prime * result + ((getGoodIfRent() == null) ? 0 : getGoodIfRent().hashCode());
        return result;
    }
}